MailPoet\Config\MP2Migrator D

Total Complexity 191
Dependencies 17
Dependents 7
Total lines 1,172
Lines of code 741
Logical lines of code 467
Comment lines 286
Methods 50
Properties 16

Methods 50

Method Rating Maintainability Complexity Lines of code
importSettings()
D
33 41 70
importForm()
A
41 10 53
mapCustomFieldParams()
A
49 9 32
importSubscribers()
A
50 8 27
importSegments()
A
51 8 26
defineMP2Tables()
A
52 8 24
importForms()
S
53 7 23
replaceListIds()
S
53 7 22
importSubscriber()
S
51 6 25
mapFrequencyEmails()
S
56 6 20
mapFrequencyInterval()
S
57 5 19
importSubscriberSegment()
S
55 5 18
mapUserStatus()
S
57 5 18
mapCustomFieldValidateValue()
S
59 5 16
import()
S
49 4 30
importSegment()
S
52 4 24
importCustomFields()
S
58 4 15
importSubscriberCustomField()
S
57 3 16
mapCustomFieldType()
S
61 3 14
loadDoubleOptinSettings()
S
67 3 7
getMappedSegmentIds()
S
66 3 9
getDataToMigrateAndResetProgressBar()
S
56 1 17
tableExists()
S
63 2 10
importSubscriberCustomFields()
S
68 2 7
importSubscriberSegments()
S
70 2 6
init()
S
69 2 7
replaceMP2ShortcodesCallback()
S
64 2 9
getImportedMapping()
S
66 2 8
isMigrationStartedAndNotCompleted()
S
75 2 4
isMigrationNeeded()
S
69 2 7
getLists()
S
60 1 14
getForms()
S
60 1 14
getUsers()
S
60 1 14
getEmail()
S
62 1 12
replaceMP2Shortcodes()
S
64 1 11
importCustomField()
S
63 1 11
getCustomFields()
S
63 1 11
getUserLists()
S
63 1 11
skipImport()
S
80 1 3
log()
S
78 1 3
enqueueScripts()
S
81 1 3
getImportedCustomFields()
S
64 1 10
emptyLog()
S
80 1 3
eraseMP3Data()
S
69 1 7
resetMigrationCounters()
S
73 1 5
deleteSegments()
S
71 1 5
stopImport()
S
74 1 4
importStopped()
S
79 1 3
displayDataToMigrate()
S
77 1 4
__construct()
S
63 1 10